package app.demo.query;

import org.springleaf.core.query.QueryObject;

public class StudentQuery extends QueryObject {

	private Long id;
	
	private String trueName;

	@Override
	public void customizeQuery() {
		if(this.id != null){
			this.addQuery("id", id, "=");
		}
		if(this.trueName != null){
			this.addQuery("trueName","%" + trueName + "%","like");
		}
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	
}
